<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script>
        // parseFloat() 的使用方法
        let num1 = parseFloat("1234hehe");//1234
        let num2 = parseFloat("0xb" );//0 无法解析十六进制
        let num3 = parseFloat("0xb", 16);//0 没有两个参数的用法
        let num4 = parseFloat("22.50");//22.5
        let num5 = parseFloat("22.50.25");//22.5 第二个小数无效
        let num6 = parseFloat("00.987")//0.987
        let num7 = parseFloat("3.14e5")//314000

        console.log("num1:  " + num1);
        console.log("num2:  " + num2);
        console.log("num3:  " + num3);
        console.log("num4:  " + num4);
        console.log("num5:  " + num5);
        console.log("num6:  " + num6);
        console.log("num7:  " + num7);

    </script>
</head>
<body>

</body>
</html>